"""
    list列表
"""
# 定义一个列表
list_1 = ["itheima","itcast","python"]
print(f"list_1: {list_1}", type(list_1))

list_2 = ["itheima",666,True]
print(f"list_2: {list_2}", type(list_2))

list_3 = ["itheima",666,["itheima","itcast","python"]]
print(f"list_3: {list_3}", type(list_3))

# 从左边取 （正向）
print(f"list_2 {list_2[0]}")
print(f"list_2 {list_2[1]}")
print(f"list_2 {list_2[2]}")
# 从右边取 （反向）
print(f"list_2 {list_2[-1]}")
print(f"list_2 {list_2[-2]}")
print(f"list_2 {list_2[-3]}")

#嵌套
print(list_3[2][0])